@charset "utf-8";

@import "reset";

@mixin img(){
    width:100%;
    height: 100%;
    vertical-align: top;
}
@mixin auto(){
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
}
$fontsize:40;
@function r($px){
    @return $px/(2*$fontsize) * 1rem;
}

html,body{
            width: 100%;
            height: 100%;
}
#web{
    width: 100%;
    height: 100%;
    position: relative;
}
header{
    width: 100%;
    height: r(75);
    position: absolute;
    top: 0;
    left: 0; 
    .nav{
        width: 100%;
        li{
            float: left;
            width: r(113);
            height: r(75);
            position: relative;
            text-align:center; 
            a{
                display: block;
                @include img();
                img{
                    height: r(37);
                    vertical-align: top;
                    padding-top: r(19);
                }
            }
            &:nth-child(1){
                width: r(82);
                margin-right: r(68);
            }
            &:last-child{
                width: r(92);
                margin-left: r(57);
            }
            &:after{
                content: '';
                border-bottom: r(3) solid #000000;
                width: 100%;
                display: none;
                position: absolute;
                bottom: 0;
            }
             &:touch{
                 &:after{
                    display: block;
                }
             }
           &.active{
                &:after{
                    display: block;
                }
            }
        }
    }
}

footer{
    width: 100%;
    height: r(62);
    background: white;
    position: absolute;
    bottom: 0;
    left: 0;
    ul{
        width: r(585);
        height: r(62);
        margin: 0 auto;
        position: relative;
        bottom: r(10);
        li{
            float: left;
            width: r(60);
            height: r(60);
            margin-right:r(62); 
            &:nth-child(3){
                width: r(97);
                height: r(81);
                margin-top: r(-21);
            }
            &:last-child{
                margin-right: 0;
            }
            a{
                display: block;
                @include img();
                img{
                    @include img();
                    vertical-align: top;
                }
            }
        }
    }
}
